package com.ruoyi.analysis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.analysis.mapper.FoodConsumeMapper;
import com.ruoyi.analysis.domain.FoodConsume;
import com.ruoyi.analysis.service.IFoodConsumeService;

/**
 * 伙食汇总列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-10
 */
@Service
public class FoodConsumeServiceImpl implements IFoodConsumeService 
{
    @Autowired
    private FoodConsumeMapper foodConsumeMapper;

    /**
     * 查询伙食汇总列表
     * 
     * @param id 伙食汇总列表主键
     * @return 伙食汇总列表
     */
    @Override
    public FoodConsume selectFoodConsumeById(Long id)
    {
        return foodConsumeMapper.selectFoodConsumeById(id);
    }

    /**
     * 查询伙食汇总列表列表
     * 
     * @param foodConsume 伙食汇总列表
     * @return 伙食汇总列表
     */
    @Override
    public List<FoodConsume> selectFoodConsumeList(FoodConsume foodConsume)
    {
        return foodConsumeMapper.selectFoodConsumeList(foodConsume);
    }

    /**
     * 新增伙食汇总列表
     * 
     * @param foodConsume 伙食汇总列表
     * @return 结果
     */
    @Override
    public int insertFoodConsume(FoodConsume foodConsume)
    {
        return foodConsumeMapper.insertFoodConsume(foodConsume);
    }

    /**
     * 修改伙食汇总列表
     * 
     * @param foodConsume 伙食汇总列表
     * @return 结果
     */
    @Override
    public int updateFoodConsume(FoodConsume foodConsume)
    {
        return foodConsumeMapper.updateFoodConsume(foodConsume);
    }

    /**
     * 批量删除伙食汇总列表
     * 
     * @param ids 需要删除的伙食汇总列表主键
     * @return 结果
     */
    @Override
    public int deleteFoodConsumeByIds(Long[] ids)
    {
        return foodConsumeMapper.deleteFoodConsumeByIds(ids);
    }

    /**
     * 删除伙食汇总列表信息
     * 
     * @param id 伙食汇总列表主键
     * @return 结果
     */
    @Override
    public int deleteFoodConsumeById(Long id)
    {
        return foodConsumeMapper.deleteFoodConsumeById(id);
    }
}
